package com.ren.scale.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author RZY
 * @since 2022-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ReclScale对象", description="")
public class ReclScale implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "量表记录唯一id")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty(value = "量表创建者id")
    private Long createUserId;

    @ApiModelProperty(value = "量表一级分类的唯一id")
    private Long classifyParentId;

    @ApiModelProperty(value = "量表二级分类的唯一id")
    private Long classifyId;

    @ApiModelProperty(value = "量表标题")
    private String title;

    @ApiModelProperty(value = "量表价格")
    private BigDecimal scalePrice;

    @ApiModelProperty(value = "量表分为组合表和单一表（0代表组合，1代表单一）")
    private Integer scaleCategory;

    @ApiModelProperty(value = "量表封面图片路径")
    private String scaleCover;

    @ApiModelProperty(value = "量表购买量")
    private Long buyCount;

    @ApiModelProperty(value = "量表浏览量")
    private Long viewCount;

    @ApiModelProperty(value = "量表描述信息")
    private String description;

    @ApiModelProperty(value = "量表发布情况（Draft代表待确认，Verify代表已确认,Normal代表已发布）")
    private String status;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
